// 预约相关接口
import http from "../../common/http.js";

export default {
  // 提交订单
  requestSubmitOrder: (data) => {
    return http.POST("/plugin/food/order/submit", data);
  },
  // 订单详情
  requestOrderDetail: (data) => {
    return http.GET("/plugin/food/order/detail", data);
  },
  // 订单支付
  requestOrderPay: (data) => {
    return http.POST("/plugin/food/order/pay", data);
  },
  // 订单列表
  getOrderList: (data) => {
    return http.GET("/plugin/food/order/list", data);
  },
  // 订单预览
  orerMealOrderPreview: (data) => {
    return http.POST("/order/submit-preview", data);
  },
  // 拼单状态
  spellOrderStatus: (data) => {
    return http.GET("/md-food/status", data);
  },
  // 提交点餐订单
  submitSpellOrder: (data) => {
    return http.POST("/order/submit", data);
  },
};
